Skip to main content

Alias

macOS alias data is similar to Windows Shortcut artifacts. It points to another file on the system. Alias data is sometimes found in plist files. The macOS Firewall artifact contains alias data.

Collection

You have to use the artemis api in order to parse alias data.

Sample API Script

import { parseAlias } from "https://raw.githubusercontent.com/puffycid/artemis-api/master/mod.ts";

function main() {
// Need to obtain alias bytes from another file. Plist files may have alias data.
// Ex: The macOS Firewall artifact contains alias data
const results = parseAlias(new Uint8Array());
console.log(results);
}

Output Structure

An alias object structure

export interface Alias {
kind: string;
volume_name: string;
volume_created: string;
filesystem_type: number;
disk_type: number;
cnid: number;
target_name: string;
target_cnid: number;
target_created: string;
target_creator_code: number;
target_type_code: number;
number_directory_levels_from_alias_to_root: number;
number_directory_levels_from_root_to_target: number;
volume_attributes: number;
volume_filesystem_id: number;
tags: AliasTags;
}

export interface AliasTags {
carbon_paths: string[];
paths: string[];
}